
public class ej37 {
	
	static final int N=10;
	
	static boolean iguales (int v[],int w[], int i){
		if(i==N -1) //caso base
			if (v[i]==w[i])
				return true;
			else
				return false;
		else
			if (v[i]==w[i])
				return iguales(v,w,i+1);
			else
				return false;
	}
	
	public static void main(String[] args) {
		int w[] = {0,1,2,3,4,5,6,7,8,9};
		int v[] = {0,1,2,3,4,5,6,7,8,9};
		System.out.print("Los vectores V y W ");
		if (iguales(v,w,0)==true)
			System.out.println("SON IGUALES");
		else
			System.out.println("SON DISTINTOS");

	}

}
